package juhouse.biz.kc.action;

import java.util.Enumeration;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

public class YmAction extends DispatchAction{
	public ActionForward saveYMBill(ActionMapping mapping,
			ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
			
		Enumeration<?> paramNames = request.getParameterNames(); 


		System.out.println("====================================");
		while (paramNames.hasMoreElements()) { 
		String paramName = (String)paramNames.nextElement(); 

		String[] paramValues = request.getParameterValues(paramName); 
        for (int i=0;i<paramValues.length;i++)
        {	
        	 System.out.println(paramName+"="+paramValues[i]);	
        }
		
		}

		System.out.println("====================================");
         //   YmForm ymform = (YmForm)form ;
       // 	TestDao dao = new TestDao();
		//	int key=0;
		//	key=dao.saveYMBill(form);
			//String curUrl=this.getOpenCur(request, response, key);
		//	System.out.println(curUrl);
		//	response.sendRedirect(curUrl);
		
		return null;
	}
	
}
